package com.zsrt.java.day20161226.cg.demo03.method05;

import java.util.Scanner;


public class SwitchTest02 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		System.out.println("请输入一个学生的成绩");
		String score = sc.next();
		
		sc.close();
		switchTest(score);
		
	}
	public static void switchTest(String score){
		
		switch(score){
		case "A" : System.out.println("优秀"); break; 
		case "B" : System.out.println("良好"); break;
		case "C" : System.out.println("一般"); break;
		default  : System.out.println("有问题");break;
		}
	}
}
